<h1>Listing suggestions</h1>

<table>
  <tr>
    <th>Vid</th>
    <th>Type</th>
    <th>S</th>
    <th>V</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @suggestions.each do |suggestion| %>
  <tr>
    <td><%= suggestion.vid %></td>
    <td><%= suggestion.type %></td>
    <td><%= suggestion.s %></td>
    <td><%= suggestion.v %></td>
    <td><%= link_to 'Show', suggestion %></td>
    <td><%= link_to 'Edit', edit_suggestion_path(suggestion) %></td>
    <td><%= link_to 'Destroy', suggestion, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Suggestion', new_suggestion_path %>
